<template>
    <div>
        <h3>这是一个组件</h3>
        <div>传入的属性值</div>
        <div>{{ $props }}</div>
    </div>
</template>

<script setup lang="ts">
let cnt = ref<any>([])
cnt.value = ['1','2','3'];
let a = 1;
enum s {
    '男'='1',
    '女'='2'
}
let b:string | number;
b = s['男'];
interface prop {
    message?: string,
    age?:number,
    isTy?: boolean
}

let obj:prop;

const props = defineProps<prop>()
// defineExpose<prop>()
</script>